﻿using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using ProdService;
using System.Diagnostics;
using UI.Filters;
using ViewModels.JsonResult;
using ViewModels.User;
using static Global.Const;

namespace UI.Controllers
{
    public class ContactController : BaseController
    {
        private UserService userService;
        private ContactService contactService;
        public ContactController(UserService userService, ContactService contactService)
        {
            this.contactService = contactService;
            this.userService = userService;
        }
        public PartialViewResult _Edit(int id)
        {
            return PartialView(contactService.GetContact(id));
        }

        public PartialViewResult _Of(int? userId)
        {
            return PartialView(contactService.ShowContact(userId));
        }



    }
}